package com.dt76.smallloanbackenduser.hystrix.etao;

import com.dt76.smallloanbackenduser.pojo.etao.Role;
import com.dt76.smallloanbackenduser.remote.etao.RoleManageRemote;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class RoleHystrix implements RoleManageRemote {
    @Override
    public Page getAllRole(Integer pageIndex) {
        return new Page();
    }

    @Override
    public Role getRoleById(Integer rId) {
        return new Role();
    }

    @Override
    public Result updateRole(Role role) {
        return new Result();
    }

    @Override
    public Result addRole(Role role) {
        return new Result();
    }

    @Override
    public Result delRole(Integer rId) {
        return new Result();
    }

    @Override
    public List<Role> getRoleByDid(Integer dId) {
        return new ArrayList<>();
    }

}
